package com.qj.yantaishan.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qj.yantaishan.common.annotation.Excel;
import com.qj.yantaishan.common.core.domain.BaseEntity;

/**
 * 商品属性值对象 shanglala_product_property_value
 * 
 * @author qihe
 * @date 2022-07-22
 */
public class ProductPropertyValue
{
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    /** 商品属性值id */
    private Integer vid;

    /** 商品属性名id */
    @Excel(name = "商品属性名id")
    private Integer pid;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 商品属性值 */
    @Excel(name = "商品属性值")
    private String value;

    /** 属性对应图片 */
    @Excel(name = "属性对应图片")
    private String image;

    /** 是否显示 0：不显示，1：显示 */
    @Excel(name = "是否显示 0：不显示，1：显示")
    private Integer status;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long addTime;

    /** 1未删除，0已经假删除 */
    @Excel(name = "1未删除，0已经假删除")
    private Integer isOn;

    public void setVid(Integer vid) 
    {
        this.vid = vid;
    }

    public Integer getVid() 
    {
        return vid;
    }
    public void setPid(Integer pid) 
    {
        this.pid = pid;
    }

    public Integer getPid() 
    {
        return pid;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setValue(String value) 
    {
        this.value = value;
    }

    public String getValue() 
    {
        return value;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setAddTime(Long addTime) 
    {
        this.addTime = addTime;
    }

    public Long getAddTime() 
    {
        return addTime;
    }
    public void setIsOn(Integer isOn) 
    {
        this.isOn = isOn;
    }

    public Integer getIsOn() 
    {
        return isOn;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("vid", getVid())
            .append("pid", getPid())
            .append("productId", getProductId())
            .append("value", getValue())
            .append("image", getImage())
            .append("status", getStatus())
            .append("addTime", getAddTime())

            .append("isOn", getIsOn())
            .toString();
    }
}
